package 周赛;

public class 执行操作后的变量值 {

    public int finalValueAfterOperations(String[] operations) {
         int res=0;
        for (String s : operations) {
            if (s.charAt(0)=='+' || s.charAt(s.length()-1)=='+')
                res+=1;
            else
                res-=1;
        }
        return res;
    }
}
